star pattern program in Javascript